import { ClientOptions } from '@fmfe/genesis-core'
import { createClientApp } from '@fmfe/genesis-app'
import Vue from 'vue'
import { createRouter, createI18n, App } from './main'

export default async (clientOptions: ClientOptions): Promise<Vue> => {
    const router = createRouter();
    const i18n = createI18n();
    return createClientApp({
        App,
        clientOptions,
        vueOptions: {
            router,
            i18n
        }
    })
}
